package main

import ("fmt")

func main() {
	//var numbers = make([]int,3,5)
	//s :=[] int {1,2,3 }
	//s = append(s, 111,888)
	//s = append(s, 111)
	//s = append(s, 111)
	//s = append(s, 111)
	//s = append(s, 111)
	//s = append(s, 111)
	//s = append(s, 111)
	//printSlice(s)
	//printSlice(numbers)

	m := make(map[string]*student)
	stus := []student{
		{"pprof.cn", 18},
		{"测试", 23},
		{"博客", 28},
	}

	for _, stu := range stus {
		m[stu.name] = &stu
	}
	for k, v := range m {
		fmt.Println(k, "=>", v.name)
	}
	ss:=student{"111",22}
	fmt.Println(ss)
}

func printSlice(x []int){
	fmt.Printf("len=%d cap=%d slice=%v\n",len(x),cap(x),x)
}

type student struct {
	name string
	age  int
}